﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Ajouter un film
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("Layout/admin_menu"); %>
    <h2>Nouveau film</h2>
    <form class="form-horizontal"  action="/Admin/Oeuvres/AddFilm" method="post">
        <div class="control-group">
            <label class="control-label">Titre</label>
            <div class="controls">
                <input type="text" name="title" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Durée</label>
            <div class="controls">
                <select name="length" class="input-small">
                    <% for (var i = 0; i <= 200; i++) { %>  
                    <option value="<%= i %>"><%= i %></option>
                    <% } %>
                </select> minutes
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Année de sortie</label>
            <div class="controls">
                <select name="realase_year">
                    <% for (var i = 1930; i <= 2013; i++) { %>
                    <option value="<%= i %>"><%= i %></option>
                    <% } %>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Résumé</label>
            <div class="controls">
                <textarea class="input-xxlarge" rows="10" name="resume"></textarea>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <button class="btn btn-warning" type="submit">Ajouter</button>
            </div>
        </div>
    </form>
</asp:Content>
